container: Propagate child properties if parent != container
authorTimm Bäder <mail@baedert.org>
Fri, 12 May 2017 09:46:26 +0000 (11:46 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
This can happen when e.g. GtkNotebook adds the child page widgets not
directly inside the notebook, but inside the inner GtkStack.

gtk/gtkcontainer.c

index 1f7f69d30e74ee74c1cfa8909fe83e7b80885503..543d604477644ba27e830431cbc8a7fa9b8c3450 100644 (file)
@@ -580,8 +580,7 @@ gtk_container_buildable_set_child_property (GtkContainer *container,
   GError *error = NULL;
   GObjectNotifyQueue *nqueue;
 
-  if (_gtk_widget_get_parent (child) != (GtkWidget *)container &&
-      !SPECIAL_CONTAINER (container))
+  if (SPECIAL_CONTAINER (container))
     {
       /* This can happen with internal children of complex widgets.
        * Silently ignore the child properties in this case. We explicitly